﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001383 RID: 4995
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeQuestRewardScRsp : IMessage<TakeQuestRewardScRsp>, IMessage, IEquatable<TakeQuestRewardScRsp>, IDeepCloneable<TakeQuestRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003EF9 RID: 16121
		// (get) Token: 0x0600DFA3 RID: 57251 RVA: 0x002560E5 File Offset: 0x002542E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeQuestRewardScRsp> Parser
		{
			get
			{
				return TakeQuestRewardScRsp._parser;
			}
		}

		// Token: 0x17003EFA RID: 16122
		// (get) Token: 0x0600DFA4 RID: 57252 RVA: 0x002560EC File Offset: 0x002542EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeQuestRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EFB RID: 16123
		// (get) Token: 0x0600DFA5 RID: 57253 RVA: 0x002560FE File Offset: 0x002542FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeQuestRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DFA6 RID: 57254 RVA: 0x00256105 File Offset: 0x00254305
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestRewardScRsp()
		{
		}

		// Token: 0x0600DFA7 RID: 57255 RVA: 0x00256118 File Offset: 0x00254318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestRewardScRsp(TakeQuestRewardScRsp other) : this()
		{
			this.succQuestIdList_ = other.succQuestIdList_.Clone();
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DFA8 RID: 57256 RVA: 0x00256175 File Offset: 0x00254375
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestRewardScRsp Clone()
		{
			return new TakeQuestRewardScRsp(this);
		}

		// Token: 0x17003EFC RID: 16124
		// (get) Token: 0x0600DFA9 RID: 57257 RVA: 0x0025617D File Offset: 0x0025437D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> SuccQuestIdList
		{
			get
			{
				return this.succQuestIdList_;
			}
		}

		// Token: 0x17003EFD RID: 16125
		// (get) Token: 0x0600DFAA RID: 57258 RVA: 0x00256185 File Offset: 0x00254385
		// (set) Token: 0x0600DFAB RID: 57259 RVA: 0x0025618D File Offset: 0x0025438D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003EFE RID: 16126
		// (get) Token: 0x0600DFAC RID: 57260 RVA: 0x00256196 File Offset: 0x00254396
		// (set) Token: 0x0600DFAD RID: 57261 RVA: 0x0025619E File Offset: 0x0025439E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DFAE RID: 57262 RVA: 0x002561A7 File Offset: 0x002543A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeQuestRewardScRsp);
		}

		// Token: 0x0600DFAF RID: 57263 RVA: 0x002561B8 File Offset: 0x002543B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeQuestRewardScRsp other)
		{
			return other != null && (other == this || (this.succQuestIdList_.Equals(other.succQuestIdList_) && object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DFB0 RID: 57264 RVA: 0x0025621C File Offset: 0x0025441C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.succQuestIdList_.GetHashCode();
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DFB1 RID: 57265 RVA: 0x0025627F File Offset: 0x0025447F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DFB2 RID: 57266 RVA: 0x00256287 File Offset: 0x00254487
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DFB3 RID: 57267 RVA: 0x00256290 File Offset: 0x00254490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.succQuestIdList_.WriteTo(ref output, TakeQuestRewardScRsp._repeated_succQuestIdList_codec);
			if (this.reward_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DFB4 RID: 57268 RVA: 0x002562FC File Offset: 0x002544FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.succQuestIdList_.CalculateSize(TakeQuestRewardScRsp._repeated_succQuestIdList_codec);
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DFB5 RID: 57269 RVA: 0x00256368 File Offset: 0x00254568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeQuestRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.succQuestIdList_.Add(other.succQuestIdList_);
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DFB6 RID: 57270 RVA: 0x002563E1 File Offset: 0x002545E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DFB7 RID: 57271 RVA: 0x002563EC File Offset: 0x002545EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 32U || num == 34U)
					{
						this.succQuestIdList_.AddEntriesFrom(ref input, TakeQuestRewardScRsp._repeated_succQuestIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005895 RID: 22677
		private static readonly MessageParser<TakeQuestRewardScRsp> _parser = new MessageParser<TakeQuestRewardScRsp>(() => new TakeQuestRewardScRsp());

		// Token: 0x04005896 RID: 22678
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005897 RID: 22679
		public const int SuccQuestIdListFieldNumber = 4;

		// Token: 0x04005898 RID: 22680
		private static readonly FieldCodec<uint> _repeated_succQuestIdList_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x04005899 RID: 22681
		private readonly RepeatedField<uint> succQuestIdList_ = new RepeatedField<uint>();

		// Token: 0x0400589A RID: 22682
		public const int RewardFieldNumber = 7;

		// Token: 0x0400589B RID: 22683
		private ItemList reward_;

		// Token: 0x0400589C RID: 22684
		public const int RetcodeFieldNumber = 10;

		// Token: 0x0400589D RID: 22685
		private uint retcode_;
	}
}
